from selenium.webdriver.common.keys import Keys

from common.po_base import Page, El


class IndexPage(Page):
    """用百度代替"""
    is_login = True
    kw = El("搜索框", css="#kw")

    def search_something(self, val):
        self.kw.send_keys(val)
        self.kw.send_keys(Keys.ENTER)
        return self
